﻿<BaseControl:DialogControl x:Class="jSLCore.Client.Presentation.Authorization.AccountDetail"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:BaseControl="clr-namespace:jSLCore.Client.Presentation.BaseControl" xmlns:j="clr-namespace:jSLCore.Client.Presentation.Controls" xmlns:jBinding="clr-namespace:jSLCore.Client.Presentation.jBinding" xmlns:BaseConverters="clr-namespace:jSLCore.Client.Presentation.jBinding.BaseConverters" mc:Ignorable="d"
    d:DesignHeight="300" d:DesignWidth="400" Icon="../Resources/User.png" Title="Пользователь">
    <j:ImageGroupBox Header="Информация" ImageSource="../Resources/Info.png">
        <StackPanel Orientation="Vertical">
            <j:LeftHeaderContainer Header="Логин:">
                <TextBlock Text="{Binding Login}"/>
            </j:LeftHeaderContainer>
            <j:LeftHeaderContainer Header="Дата регистрации:">
                <TextBlock>
                    <TextBlock.Text>
                        <jBinding:jBinding Path="CreationDate" ConvertingMode="ToShortDate"/>
                    </TextBlock.Text>
                </TextBlock>
            </j:LeftHeaderContainer>
            <CheckBox Content="Заблокирован" IsEnabled="False">
            	<CheckBox.IsChecked>
                    <Binding Path="IsEnabled" >
                        <Binding.Converter>
                            <BaseConverters:jInvertBooleanConverter/>
                        </Binding.Converter>
                    </Binding>
                </CheckBox.IsChecked>
            </CheckBox>
            <HyperlinkButton Content="Сменить пароль" Click="changePwd_Clicked"/>
        </StackPanel>
    </j:ImageGroupBox>
</BaseControl:DialogControl>
